import request from "@/utils/request"

//列表查询
export const queryClazzApi = (name,begin,end,page,pageSize) => 
                        request.get(`/clazzs?name=${name}&begin=${begin}&end=${end}&page=${page}&pageSize=${pageSize}`)

export const addClazzApi = (clazz) => request.post('/clazzs', clazz)

export const queryClazzByIdApi = (id) => request.get(`/clazzs/${id}`)
export const updateClazzApi = (clazz) => request.put('/clazzs',clazz) 
export const deleteClazzByIdApi = (id) => request.delete(`/clazzs/${id}`)
export const queryClazzListApi = () => request.get('/clazzs/list')